package com.qf.controller;

import com.qf.util.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Qiao
 * @date 2025/8/12
 * @desc
 */
@RestController
@Slf4j
@Api(tags = "日志演示")
public class TestLogController {


    @GetMapping("/log")
    @ApiOperation(value = "测试")
    public R log(){
        log.debug("");
        log.debug("这是bug级别");
        log.warn("我是警告");
        log.info("我是消息");
        log.error("我是错误！");
        return R.success();
    }
}
